// nullfilter.h

#ifndef NULLFILTER_H
#define NULLFILTER_H

template<typename T>
class NullFilter : public Filter<T> {
public:
	NullFilter() : value_(0) {}
	virtual ~NullFilter() {}

	virtual T update(T value) {
		value_ = value;
		return value_;
	}

	virtual T operator()() {
		return value_;
	}

	virtual void set(T value) {}

private:
	T value_;
};


#endif
